<div style="min-height: 282px">
    <ul class="list">
        <?php if(count($contacts)): ?>
        <?php foreach($contacts as $contact):?> 
        <li>
            <div class="list_main_container">
                <img src="<?php echo $contact->photo ?>" alt="<?php echo $contact->name.' '.$contact->surname ?>"/>
                <div class="list_user_link"><a href="/desktop/<?php echo $contact->url ?>" class="desktop_link" title="<?php echo __('show desktop') ?>"></a><a href="/profile/<?php echo $contact->url ?>" class="profile_link" title="<?php echo __('show profile')?>"></a></div>
                <div style="width: 430px">
                    <p class="mini_name ellipsis_character"><?php echo $contact->name.' '.$contact->surname ?></p>
                    <p class="mini_info ellipsis_word"><?php echo $contact->description ?></p></div>  
                <div class="list_standard_entre" style="float: right; margin-right: 15px"> <a href="/contact/remove/<?php echo $contact->id ?>" class="tooltip delete" title="<?php echo __('remove contact') ?>" rel="<?php echo __('Remove contact|Are you realy want remove :user from your contact list ?|Remove|Cancel', array(':user' => $contact->name.' '.$contact->surname)) ?>"></a></div>
               
                
            </div>
        </li>
        <?php endforeach ?>
        <?php else: ?>
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none"><?php echo __('no contacts to show') ?></div>                   
                </div>
            </li>
        <?php endif ?>
    </ul>
</div>